package pojo;

import java.time.LocalDateTime;

/**
 * 问卷表实体类
 */
public class Wj {
    private Integer id;          // 问卷ID（与数据库一致）
    private String question;     // 问题
    private String option1;      // 选项1
    private String option2;      // 选项2
    private String option3;      // 选项3
    private String option4;      // 选项4
    private LocalDateTime createTime; // 创建时间（驼峰命名）

    // Getter 和 Setter 方法
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }

    public String getQuestion() { return question; }
    public void setQuestion(String question) { this.question = question; }

    public String getOption1() { return option1; }
    public void setOption1(String option1) { this.option1 = option1; }

    public String getOption2() { return option2; }
    public void setOption2(String option2) { this.option2 = option2; }

    public String getOption3() { return option3; }
    public void setOption3(String option3) { this.option3 = option3; }

    public String getOption4() { return option4; }
    public void setOption4(String option4) { this.option4 = option4; }

    public LocalDateTime getCreateTime() { return createTime; }
    public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; }

    @Override
    public String toString() {
        return "Wj{" +
                "id=" + id +
                ", question='" + question + '\'' +
                ", option1='" + option1 + '\'' +
                ", option2='" + option2 + '\'' +
                ", option3='" + option3 + '\'' +
                ", option4='" + option4 + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}